using System;
using System.Data;
using System.Collections.Generic;
using System.Text;

namespace DTO
{
    public class Sach
    {
        protected string maSach;
        protected string maTheLoai;
        protected string tenSach;
        protected string tacGia;
        protected int namXuatBan;
        protected string nhaXuatBan;
        protected DateTime ngayNhap;
        protected int giaSach;
        protected int soLuong;
        protected string nguoiTiepNhan;
        protected int tinhTrang;

        public int TinhTrang
        {
            get { return tinhTrang; }
            set { tinhTrang = value; }
        }
	
        public string NguoiTiepNhan
        {
            get { return nguoiTiepNhan; }
            set { nguoiTiepNhan = value; }
        }
	
        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
	
        public int GiaSach
        {
            get { return giaSach; }
            set { giaSach = value; }
        }
	
        public DateTime NgayNhap
        {
            get { return ngayNhap; }
            set { ngayNhap = value; }
        }
	
        public string NhaXuatBan
        {
            get { return nhaXuatBan; }
            set { nhaXuatBan = value; }
        }
	
        public int NamXuatBan
        {
            get { return namXuatBan; }
            set { namXuatBan = value; }
        }
	
        public string TacGia
        {
            get { return tacGia; }
            set { tacGia = value; }
        }
	
        public string TenSach
        {
            get { return tenSach; }
            set { tenSach = value; }
        }
	
        public string MaTheLoai
        {
            get { return maTheLoai; }
            set { maTheLoai = value; }
        }
	
	
        public string MaSach
        {
            get { return maSach; }
            set { maSach = value; }
        }

        public Sach() { }
        public Sach(string ms,string mtt,string ts,string tg,int naxb,string nxb,DateTime nn,int gs,int sl,string ntn,int tt)
        {
            maSach = ms;
            maTheLoai = mtt;
            tenSach = ts;
            tacGia = tg;
            namXuatBan = naxb;
            ngayNhap = nn;
            giaSach = gs;
            soLuong = sl;
            nguoiTiepNhan = ntn;
            tinhTrang = tt;
        }
        public Sach(Sach s)
        {
            maSach = s.MaSach;
            maTheLoai = s.MaTheLoai;
            tenSach = s.TenSach;
            tacGia = s.TacGia;
            namXuatBan = s.NamXuatBan;
            nhaXuatBan = s.NhaXuatBan;
            ngayNhap = s.NgayNhap;
            giaSach = s.GiaSach;
            soLuong = s.SoLuong;
            nguoiTiepNhan = s.NguoiTiepNhan;
            tinhTrang = s.TinhTrang;
        }
        //chi 
        DTO.TheLoaiSach loai;
        public DTO.TheLoaiSach Loai
        {
            get { return loai; }
            set { loai = value; }
        }
    }
}
